using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using MS.Core.Base.Data;


namespace LHS.Core.TableInfo.SetUpCaseRecordForm
{
    public class CaseRecord_LeafInfo
    {
        public const String CRT_ID = "CRT_ID";
        public const String CRL_COLNAME = "CRL_ColName";
        public const String CRL_DATATYPE = "CRL_DataType";
        public const String CRL_MAXLENGTH = "CRL_MaxLength";
        public const String CRL_CONTROLTYPE = "CRL_ControlType";
        public const String CRL_CONTROLNUMBER = "CRL_ControlNumber";
        public const String CRL_TITLEFORRADIOGROUP = "CRL_TitleForRadioGroup";
        public const String CRC_ID = "CRC_ID";

        public const String TABLENAME = "CaseRecord_Leaf";

        public static DataTable GetStructure()
        {
            DataTable dtReturn = new DataTable();
            dtReturn.TableName = TABLENAME;
            dtReturn.Columns.Add(CRT_ID, typeof(String));
            dtReturn.Columns.Add(CRL_COLNAME, typeof(String));
            dtReturn.Columns.Add(CRL_DATATYPE, typeof(String));
            dtReturn.Columns.Add(CRL_MAXLENGTH, typeof(String));
            dtReturn.Columns.Add(CRL_CONTROLTYPE, typeof(String));
            dtReturn.Columns.Add(CRL_CONTROLNUMBER, typeof(int));
            dtReturn.Columns.Add(CRL_TITLEFORRADIOGROUP, typeof(String));
            dtReturn.Columns.Add(CRC_ID, typeof(int));
            dtReturn.Columns.Add(DBBaseInfo.Hidden_Status, typeof(int));
            return dtReturn;
        }

        public static String[] GetKey()
        {
            return new String[] { CRT_ID };
        }
    }
}
